import {ref} from 'vue'
import {defineStore} from 'pinia'

export const useAuthStore = defineStore('auth', () => {
    const appToken = ref('')
    const appTokenGetter = () => {
        return appToken.value
    }
    const appTokenSetter = (token: string) => {
        appToken.value = token
    }
    return {
        appTokenGetter,
        appTokenSetter
    }
})
